package com.xxx.generator.common.response;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 邢晨旭
 * {@code @date} 2023/10/12
 */
@Getter
@AllArgsConstructor
public enum ResponseEnum {
    /**
     * 100000: success
     */
    SUCCESS(100000, "success"),
    /**
     * 999999: error
     */
    ERROR(999999, "error"),
    LOGIN_ERROR(100001, "用户名或密码不正确"),
    ACCOUNT_LOCKED(100002, "账户被锁定,请联系管理员"),
    UNAUTHORIZED(100003, "未授权"),
    ACCESS_TOKEN_OVERDUE(100004, "access_token过期"),
    /**
     * 权限不足
     */
    INSUFFICIENT_PERMISSIONS(100005, "权限不足"),
    ;

    private final Integer code;
    private final String message;

}
